package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonDiathesisAbilityEstimate;
import com.zhijian.medical.entity.vo.request.PersonDiathesisAbilityEstimateSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.PersonDiathesisAbilityEstimateSearchVo;
import com.zhijian.medical.entity.vo.response.PersonDiathesisAbilityEstimateListVo;
import com.zhijian.medical.entity.vo.response.PersonDiathesisAbilityEstimateVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-素质能力评估 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-03-27 13:52:37
 */
public interface PersonDiathesisAbilityEstimateService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonDiathesisAbilityEstimate selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonDiathesisAbilityEstimateVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personDiathesisAbilityEstimate
     * @return
     */
    Long insert(PersonDiathesisAbilityEstimate personDiathesisAbilityEstimate);

    /**
     * 新增
     *
     * @param personDiathesisAbilityEstimateSaveOrUpdateVo
     * @return
     */
    Long insert(PersonDiathesisAbilityEstimateSaveOrUpdateVo personDiathesisAbilityEstimateSaveOrUpdateVo);

    /**
     * 更改
     *
     * @param personDiathesisAbilityEstimate
     * @return
     */
    boolean update(PersonDiathesisAbilityEstimate personDiathesisAbilityEstimate);

    /**
     * 修改
     *
     * @param personDiathesisAbilityEstimateSaveOrUpdateVo
     * @return
     */
    boolean update(PersonDiathesisAbilityEstimateSaveOrUpdateVo personDiathesisAbilityEstimateSaveOrUpdateVo);

    /**
     * 总数
     *
     * @param personDiathesisAbilityEstimateSearchVo
     * @return
     */
    Integer count(PersonDiathesisAbilityEstimateSearchVo personDiathesisAbilityEstimateSearchVo);

    /**
     * 列表
     *
     * @param personDiathesisAbilityEstimateSearchVo
     * @return
     */
    List<PersonDiathesisAbilityEstimateListVo> selectList(PersonDiathesisAbilityEstimateSearchVo personDiathesisAbilityEstimateSearchVo);

    /**
     * 分页查询
     *
     * @param personDiathesisAbilityEstimateSearchVo
     * @return
     */
    Page<PersonDiathesisAbilityEstimateListVo> selectPage(PersonDiathesisAbilityEstimateSearchVo personDiathesisAbilityEstimateSearchVo);

    /**
     * 根据人员id进行查找
     *
     * @param personId
     * @return
     */
    PersonDiathesisAbilityEstimateVo selectVoByPersonId(Long personId);
}